//
//  DDRotateViewController.m
//  tianyue
//
//  Created by ZhengYing on 2017/7/8.
//  Copyright © 2017年 zy. All rights reserved.
//

#import "DDRotateViewController.h"
#import "ZYRotateVeiw.h"
@interface DDRotateViewController ()
{
    ZYRotateVeiw *rotate;
}
@property (weak, nonatomic) IBOutlet UIView *contentView;
@property (weak, nonatomic) IBOutlet UIButton *btn_if;
@property (weak, nonatomic) IBOutlet UIButton *btn_sf;

@end

@implementation DDRotateViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     rotate= [[ZYRotateVeiw alloc]initWithFrame:self.contentView.bounds Path:self.path maxCount:60];
    [self.contentView addSubview:rotate];
    if ([self.path isEqualToString:@"skin/zzp/102/102-zct"]) {
        [rotate setImageWithPath:[NSString stringWithFormat:@"%@/1f",self.path] maxCount:60];

        
        self.btn_if.hidden = NO;
        self.btn_sf.hidden = NO;
    }
    // Do any additional setup after loading the view.
}
- (IBAction)press1f:(id)sender {
    
    [rotate setImageWithPath:[NSString stringWithFormat:@"%@/1f",self.path] maxCount:60];
}
- (IBAction)press2f:(id)sender {
    [rotate setImageWithPath:[NSString stringWithFormat:@"%@/2f",self.path] maxCount:60];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
